function statscontrol(id){
    $.ajax({
        url: '/fmytest/statuscontrol/',
        type: 'post',
        data: {
            rid: id,
        },
        success:(res) =>{
            alert(res['messages'])
            location.reload()
        },
        error: () => alert('修改状态失败')

    })
}